package com.linkhub.oms.admin.common.enums;

import com.google.common.collect.Lists;
import com.linkhub.oms.common.enums.IEnumConvert;
import com.linkhub.oms.common.enums.mp.EmployeeBusinessStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

import static com.linkhub.oms.admin.modules.order.constant.OrderConstant.EMPLOYEE_ORDER_LIST_STATUS;

/**
 * @Description: EmployeeMenuMappingStateEnum
 * @Author: echo
 * @Date: 2024/4/14 10:31
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum EmployeeMenuMappingStateEnum implements IEnumConvert<Integer> {
    ORDER_LIST(1, "订单审核", EMPLOYEE_ORDER_LIST_STATUS),
    IN_PERFORMANCE(2, "履约中", Lists.newArrayList(EmployeeBusinessStatusEnum.OUT_OF_STORAGE)), // 业务变更，已无该状态
    TRACKING(3, "追踪订单", Lists.newArrayList(EmployeeBusinessStatusEnum.TRACKING)),
    ABNORMAL(4, "异常订单", Lists.newArrayList(EmployeeBusinessStatusEnum.ABNORMAL)),

    ;
    private final Integer code;
    private final String desc;
    private final List<EmployeeBusinessStatusEnum> bizStatus;

}
